<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      >
    <head>
        <title>Login</title>
    </head>
    <body>
        <a4j:loadStyle src="resource:///css/formulario.css"  />
        <h:form id="formulario">
            <p style="height:150px;"  align="center" />
            <div align="center">
                <fieldset  style="width:350px;">
                    <legend>Login</legend>
                    <table border="0">
                        <tr>
                            <td>Usuario</td>
                            <td>
                                <h:inputText id="j_username" size="27" required="true" label="Usuario" value="#{authUsuarioMB.usuario}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>Password</td>
                            <td>
                                <h:inputSecret id="j_password"  size="27" required="true" label="Contraseña" value="#{authUsuarioMB.password}" />
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2">
                                <p align="right">
                                    <h:commandButton value="Aceptar" action="#{authUsuarioMB.checkUser}" styleClass="button" />
                                </p>
                            </td>
                            <td><div></div></td>
                        </tr>
                    </table>
                </fieldset>
            </div>
        </h:form>
    </body>
</html>

